Requirements
Please ensure that your local device meets the following minimum requirements.
- Flutter SDK 3.0, or higher.
-
Additional SDKs and toolchains:
- Dart SDK 3.2, or higher.
-
For building Android app:
- Android SDK.
- Android Command line build tools.
-
For building iOS app
- Xcode 12.5, or higher
- CocoaPods 1.11, or higher
NoteIf you've a functional Flutter installation and you're already developing Flutter apps on your device, then you probably already have SDKs/tools that are mentioned in additional section.
Extract Files
Extract the zip file that you've downloaded from CodeCanyon on your local device. In extracted contents you'll find folder named Flutter App. This folder contains source code of Flutter App that we're
going to build in next steps.
Prerequisites
- Open command prompt in Flutter App folder.
-
Fetch dependencies:
flutter pub get
-
Ensure
pub
is globally accessible:pub -v
If above command gives you an error, then you've to addpub
to yourPATH
environment variable. If you need help, feel free to contact us.
Change App Icon
There are multiple places where logo and branding icons are used. For flexibility reasons, all branding assets are different and can be changed according to one's requirements.
-
Change App Icon:
-
Replace
assets/icon/ios.png
with your icon for iOS devices. -
Replace
assets/icon/android.png
with your icon for Android devices. -
Open command prompt in Flutter App folder and run:
flutter pub run flutter_launcher_icons:main
Above command will automatically build your updated icons.
-
Replace
-
Change home screen logo:
-
Replace
assets/svg/logo.svg
with your app logo.
-
Replace
-
Change splash screen logo and company banner:
-
Replace
assets/png/logo.png
with your app logo. -
Replace
assets/png/logo_company_on_light.png
with your logo's light variant. -
Replace
assets/png/logo_company_on_dark.png
with your logo's dark variant.
-
Replace
Change App Name
-
Activate
rename
package.pub global activate rename -
Change app name:
pub global run rename --appname "New Name"
-
Change bundle id:
pub global run rename --bundleId com.yoursite.appname
-
Lastly, update
APP_NAME
inconfig.dart
,
Configure Languages
Photogram is using Flutter's official i10n package to provide internationalization support. English(US) language is included as default in this package, resources for which can be found in
i10n/app_en.arb
file. For adding
more langauges, please refer to official documentation.
Configure API Endpoint
Open
Note that it has to match with the one you used on PHP server settings.
config.dart
from lib folder and update Installation URL.
Build Application
-
For getting release build please run:
flutter build apk
There are number of options available in
build
command. We recommend you to check out this guide from Flutter docs for more.
Deployment
If you're looking to deploy your app to Apple's App store or Google's Play Store, we recommend you to follow official deployment guides from Flutter docs.
Need help?
If you've questions or you need help, feel free to contact us.